﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:local="clr-namespace:LaunchPad.Core.Controls.Tracks"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <DrawingBrush x:Key="GripBrush" TileMode="Tile" ViewportUnits="Absolute" Viewport="3,4,8,8" >
        <DrawingBrush.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="#FFBCC7D8">
                    <GeometryDrawing.Geometry>
                        <RectangleGeometry Rect="0,0,3,3" />
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Brush="#FF61738C" >
                    <GeometryDrawing.Geometry>
                        <RectangleGeometry Rect="1,1,1,1"/>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
            </DrawingGroup>
        </DrawingBrush.Drawing>
    </DrawingBrush>
    
    <Style TargetType="{x:Type local:TrackHeader}">
        <Setter Property="Padding"
                Value="4" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TrackHeader}">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <!--<ColumnDefinition Width="12"/>-->
                            <ColumnDefinition Width="76"/>
                        </Grid.ColumnDefinitions>
                        <!--<Rectangle Fill="{StaticResource GripBrush}" RadiusX="2" RadiusY="2"/>-->
                        <Border Background="#FFBCC7D8" Grid.Column="1" >
                            <ContentPresenter Content="{TemplateBinding Content}"
                                          Margin="{TemplateBinding Padding}" />
                        </Border>
                    </Grid>

                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>

</ResourceDictionary>